package day8;

import java.util.Scanner;

public class jisuanqi {
	public static void main(String[] args) {
		System.out.println("请输入两个数字");
		Scanner scanner = new Scanner(System.in);
		int num1 = scanner.nextInt();
		int num2 = scanner.nextInt();
		Nummber nummber = new Nummber(num1, num2);
		System.out.println("加法请按1 减法请按2 成法请按3 除法请按4");
		int count = scanner.nextInt();
		switch (count) {
		case 1:
			nummber.add();
			break;
		case 2:
			nummber.sub();
			break;
		case 3:
			nummber.multi();
			break;
		case 4:
			nummber.div();
			break;
		default:
			break;
		}

	}

}
